package com.yike.user.service;

import com.yike.common.vo.LoginUserInfoVo;
import com.yike.user.entity.User;
import com.yike.user.param.*;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;
import com.yike.user.vo.UserFileVo;
import com.yike.user.vo.UserVo;

import java.util.List;

/**
 * 用户表 服务类
 *
 * @author yike
 * @since 2024-07-17
 */
public interface UserService extends BaseService<User> {

    /**
     * 用户注册
     *
     * @param userRegisterParam
     * @return
     * @throws Exception
     */
    boolean register(UserRegisterParam userRegisterParam) throws Exception;

    /**
     * 修改
     *
     * @param userUpdateParam
     * @return
     * @throws Exception
     */
    boolean updateUser(UserUpdateParam userUpdateParam) throws Exception;

    /**
     * 修改密码
     *
     * @param updatePasswordParam
     * @return
     * @throws Exception
     */
    boolean updatePassword(UpdatePasswordParam updatePasswordParam) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteUser(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param userPageParam
     * @return
     * @throws Exception
     */
    Paging<UserVo> getUserPageList(UserPageParam userPageParam) throws Exception;

    /**
     * 登录
     * @param loginParam
     * @return
     */
    LoginUserInfoVo login(LoginParam loginParam);

    UserVo info();

    List<UserFileVo> getUserHeadImgList();

    boolean appMsgSendSetting(UserSettingParam userSettingParam) throws Exception;
}
